package com.zdsoft.blp.zongbuju.shouye.linliquan.activity;

import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zdsoft.blp.R;
import com.zdsoft.blp.gongyong.fanhui.FanHuiView;
import com.zdsoft.blp.gongyong.imageFrame.IvFrameView;
import com.zdsoft.blp.gongyong.net.BaseActivity;
import com.zdsoft.blp.gongyong.xlistview.XListView;
import com.zdsoft.blp.zongbuju.shouye.linliquan.adapter.SheQuLunTanAdapter;
import com.zdsoft.blp.zongbuju.shouye.linliquan.entity.LinLi;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/9/5.
 */
public class FWZPActivity extends BaseActivity {
    private TextView title_time,title_name,shequluntan_title,shequluntan_content,
            shequluntan_zan,shequluntan_pinglun;
    private ImageView title_iv;
    private Intent intent;
    private FanHuiView fh;
    private IvFrameView iv;
    private LinearLayout ll_lianxirne;
    @Override
    protected void init() {
        setContentView(R.layout.linli_sheyuluntan_luntanxiangqing);
//        实例化控件
        title_time=find(R.id.title_time);
        title_name=find(R.id.title_name);
        title_iv=find(R.id.title_iv);
        ll_lianxirne=find(R.id.ll_lianxirne);
        iv=find(R.id.iv);
        fh=find(R.id.fh);
        fh.getTv_title().setText("论坛详情");
        iv.show(new String[]{"http://img06.tooopen.com/images/20160830/tooopen_sy_177190512837.jpg", "http://img05.tooopen.com/images/20150730/tooopen_sy_136053335664.jpg", "http://img05.tooopen.com/images/20150730/tooopen_sy_136053335664.jpg"});

        shequluntan_title=find(R.id.shequluntan_title);
        shequluntan_content=find(R.id.shequluntan_content);
        shequluntan_zan=find(R.id.shequluntan_zan);
        shequluntan_pinglun=find(R.id.shequluntan_pinglun);
//        给布局赋值
//        intent=getIntent();
//        title_name.setText(intent.getStringExtra("name"));
//        title_time.setText(intent.getStringExtra("date1"));
//        shequluntan_title.setText(intent.getStringExtra("title"));
//        shequluntan_content.setText(intent.getStringExtra("content"));
//        shequluntan_zan.setText(intent.getStringExtra("zan"));
//        shequluntan_pinglun.setText(intent.getStringExtra("pinglun"));

        title_iv.setImageResource(R.drawable.aon);
    }

}
